/**
 * Created by Administrator on 2018/1/27.
 */
function showDig(icon, txt) {
    var $dig = $("<div class='dig'></div>");
    $dig.append("<img src='" + icon + ".gif' />")
    $dig.append("<span style='margin-left:5px;height:20px;'>" + txt + "</span>");

    $("body").append($dig);

    $dig.css("left", dw / 2 - $dig.width() / 2);
    $dig.css("top", dh / 4);

    $dig.xiaoshi = function () {
        setTimeout(function () {
            $dig.fadeOut(900, function () {
                $dig.remove();
            })
        }, 300);
    }

    return $dig;
}